#include<iostream>
using namespace std;
int main()
{
    int a,b,c,f0,f1,f2,f3,f4,f5;
    while(cin>>f0>>f1>>f2)
    {
       c=f0;
       b=(4*f1-3*f0-f2)/2;
       a=(f2+f0-2*f1)/2;
       //f3=a*9+b*3+c;
       //f4=a*16+b*4+c;
       //f5=a*25+b*5+c;
       cout<<a*9+b*3+c<<" "<<a*16+b*4+c<<" "<<a*25+b*5+c<<endl;
    }
    system("pause");
    return 0;
}
